package com.cyn.ningxia;

import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

public class KKK {

    public static void main(String[] args) {

        String s = "dwzh\n" +
                "dwmc\n" +
                "jbrxm\n" +
                "jbrsjhm\n" +
                "jbrgddhhm\n" +
                "jbrzjlx\n" +
                "jbrzjlxmc\n" +
                "jbrzjhm\n" +
                "dwdz\n" +
                "dwfrdbzjlx\n" +
                "dwfrdbzjlxmc\n" +
                "dwfrdbxm\n" +
                "dwfrdbzjhm\n" +
                "dwfrdblxdh\n" +
                "dwlsgx\n" +
                "dwlsgxmc\n" +
                "dwjjlx\n" +
                "dwjjlxmc\n" +
                "dwsshy\n" +
                "dwsshymc\n" +
                "ssdq\n" +
                "ssdqbm\n" +
                "dwxz\n" +
                "dwxzbm\n" +
                "zgbm\n" +
                "zgbmbm\n" +
                "zjly\n" +
                "zjlybm\n" +
                "yzbm\n" +
                "dzyx\n" +
                "dwfxr\n" +
                "dwtyshxydm\n" +
                "dwslrq\n" +
                "dwkhrq\n" +
                "styhbm\n" +
                "styhdm\n" +
                "styhmc\n" +
                "dwjzny\n" +
                "bzxx\n" +
                "djrq\n" +
                "dwbh\n" +
                "dwjcbl\n" +
                "grjcbl\n" +
                "dwjclx\n" +
                "dwjclxmc\n" +
                "dwxhrq\n" +
                "dwxhyy\n" +
                "dwzhzt\n" +
                "dwzhztmc\n" +
                "fcrq\n" +
                "grjzny\n" +
                "jbzhkhyh\n" +
                "jbzhyhzh\n" +
                "jgbm\n" +
                "jgmc\n" +
                "khczy\n" +
                "khsj\n" +
                "khsqsj\n" +
                "ydhjr\n" +
                "yhbm\n" +
                "zgjcblsfyzmc\n" +
                "jsjd\n" +
                "zzjglx\n" +
                "zzjglxmc\n" +
                "dwjcrs";
        String[] ss = s.split("\n");
        List<String> check = Arrays.asList(ss);
        Field[] fields = ParamDwjbxxcxDTO.class.getDeclaredFields();
        List<String> check2 = new ArrayList<>();
        for(int i = 0;i < fields.length;i++){
            check2.add(fields[i].getName());
        }
        List<String> result = check.stream().filter(e->check2.stream().filter(f->f.equals(e)).findAny().isPresent()).collect(Collectors.toList());
        System.out.println(check.size());
        System.out.println(result.size());
    }
}
